OpenMLBB SDK Docs

OpenMLBB Endpoint

SDK call mapping, request requirements, and Python example.

Every card documents the SDK call from OpenMLBB and mirrors API path/query/body requirements.

GET Hero Performance Trends

/openmlbb/academy/heroes/{hero_identifier}/trends

Open Only This

API Path: /api/academy/heroes/{hero_identifier}/trends

Retrieve trend information for a specific hero over a selected time window. Supports query parameters for days, rank, pagination, and localization.

Path parameters:

  • hero_identifier: Hero identifier as numeric hero ID or hero name. Accepts values like 30, Yi Sun-shin, or yisunshin.

Query parameters:

  • days: Trend window in days. Allowed values: 7, 15, 30.
  • rank: Rank filter. Allowed values: all, epic, legend, mythic, honor, glory.
  • size: Number of items per page (minimum: 1).
  • index: Page index (starting from 1).
  • lang: Language code for localized content (default: en).

The response includes hero performance trend data:

  • records: Array of hero entries, each containing:
      • _id: Unique record identifier.
      • _createdAt: Creation timestamp.
      • _updatedAt: Last update timestamp.
      • data:
          • main_heroid: Hero ID.
          • bigrank: Rank context ID.
          • camp_type: Camp type indicator.
          • match_type: Match type indicator.
          • win_rate: Array of daily statistics, each containing:
              • date: Date of record.
              • app_rate: Appearance rate.
              • ban_rate: Ban rate.
              • win_rate: Win rate.

This endpoint is useful for:

  • Tracking hero performance changes over time.
  • Identifying meta shifts across ranks.
  • Guiding players in understanding how a hero’s effectiveness evolves across different ranks and timeframes.

Python Example

from OpenMLBB import OpenMLBB

client = OpenMLBB()
response = client.academy.hero_trends("miya", days="7", rank="all", size=20, index=1, lang="en")
print(response)

Path and Query Parameters

Name In Type Required Default
hero_identifier path string yes -
days query string no 7
rank query string no all
size query integer no 20
index query integer no 1
lang query string no en